@include reset;

*,
*:before,
*:after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

a {
  text-decoration: underline;
}

.login-wrapper {
  position: relative;
  background: linear-gradient(to top, rgba($gf, 0.3), rgba($gf, 0.3)), url(images/login/login_bg.png) center/cover no-repeat fixed;
}

// ----------

$navbar-height: 60px;

//= 页头
.login-header {
  height: $navbar-height;
  line-height: $navbar-height;
  color: white;
  background-color: rgba(0, 0, 0, 0.46);

  .logo {
    margin-left: 50px;
    vertical-align: -8px;
  }

  .logo-desc {
    display: inline-block;
    margin-left: 28px;
    font-size: 18px;
    font-weight: normal;
  }

  .navbar-right {
    float: right;
    margin-right: 20px;

    li {
      position: relative;
      display: block;
      float: left;

      > a {
        padding: 10px 15px;
        font-size: 12px;
        color: white;
        text-decoration: none;
      }
    }

    @include clear;
  }
}

//= 登录框
.form-wrapper {
  position: absolute;
  top: 50%;
  left: 70%;
  width: 405px;
  padding: 50px;
  color: #eceef3;
  background: rgba(52, 66, 86, 0.5);
  border-radius: 10px;
  transform: translate(-70%, -50%);

  input:-webkit-autofill {
    &,
    &:hover,
    &:focus {
      box-shadow: 0 0 0 50px white inset;
    }
  }

  .input-group {
    position: relative;

    .fa {
      position: absolute;
      top: 0;
      left: 0;
      margin: 15px;
      font-size: 20px;
      color: #9599a8;
    }
  }

  .form-input {
    width: 100%;
    height: 50px;
    padding-left: 40px;
    margin-bottom: 20px;
    font-size: 14px;
    background-color: $gf;
    border: 0;
    border-radius: 3px;
    // box-shadow: 2px 0 4px rgba(0, 0, 0, 0.7);
  }

  .remember-wrap {
    padding: 0 10px;
  }

  .forget-pwd {
    float: right;
    font-size: 12px;
    color: #eceef3;

    @include clear;
  }

  .submit {
    width: 100%;
    height: 50px;
    padding: 10px;
    margin: 28px 0;
    font-size: 20px;
    color: white;
    cursor: pointer;
    background-image: linear-gradient(to right, #246fdf 0%, #2d8bf9 50%, #0e71b6 100%);
    border: 0 none;
    border-radius: 3px;
  }

  .reg {
    font-size: 12px;
    color: #7fbcef;
  }

  .text-center {
    text-align: center;
  }

  .captcha-wrap {
    margin-bottom: 20px;

    .form-input {
      width: 100px;
      height: 50px;
      padding-left: 5px;
      margin-right: 5px;
      margin-bottom: 0;
    }

    a {
      margin-left: 5px;
      color: #eceef3;
    }
  }
}

//= 登录信息提示
.info-tip {
  position: absolute;
  padding: 0 5px;
  margin: -18px 0 0 39px;
  overflow: visible;
  color: $g3;
  visibility: hidden;
  background: #ffffcc;
  border: 1px solid $gd;

  //= 登录信息提示箭头
  &-arrow {
    position: absolute;
    display: block;

    @include trian(top, 6px, #ffffcc, $gd);
  }
}

//= 登录错误提示
.error-info {
  position: absolute;
  top: 15px;
  right: 42px;
  padding: 0 5px 0 25px;
  font-size: 14px;
  color: #f97252;

  .fa {
    font-size: 18px;
    vertical-align: -1px;
  }
}
